package com.tairan.chapter.web.service.impl;

import com.tairan.chapter.web.service.IRoleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class RoleServiceImpl implements IRoleService {

    private Logger logger = LoggerFactory.getLogger(IRoleService.class);

    @Override
    public List<String> list() {
        List<String> arr = new ArrayList<>();
        arr.add("admin");
        arr.add("manager");
        arr.add("leader");
        logger.info("RoleServiceImpl查询了数据库");
        return arr;
    }

    @Override
    public void createOrUpdate(String user) {

    }

    @Override
    public void delete(String user) {

    }
}
